package com.zzh.bc.db.converter;


import com.zzh.bc.db.ColumnDbType;

import java.sql.ResultSet;
import java.sql.SQLException;


/**
 * @Date: 2023/5/24 13:40
 * @Email: zzh_hz@126.com
 * @QQ: 1299234582
 * @Author: zzh
 * @Description: 列类型
 */
public interface ColumnConverter<T> {

    T getFieldValue(final ResultSet cursor, int index) throws SQLException;
    Object fieldValue2DbValue(T fieldValue);

    ColumnDbType getColumnDbType();
}
